home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Sumilidon.bin / mac / assets / sumilidon.dxr / 00038_Script_38 < prev    next >
Text File  |  2001-12-07  |  1KB  |  30 lines

  1. property myFile, useronlinee, resetscore
  2. global gotobrassurl, squam, thescore
  3.  
  4. on mouseUp me
  5.   --amended by fez 7/12/01
  6.   
  7.   --useronline = (the environment).internetConnected 
  8.   --if useronline = #online then
  9.     if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
  10.     myFile = new(xtra "fileio")    -- Create an instance of FileIO
  11.     --  openFile (myFile, the moviePath &"info.txt",0)--Open the file with R/W access  
  12.     openFile (myFile, squam&"infos.txt",0)--Open the file with R/W access  
  13.     delete(myFile) --deletes the file
  14.     --  createFile (myFile, the moviePath &"info.txt") --creates the file again
  15.     createFile (myFile, squam&"infos.txt") --creates the file again
  16.     --  openFile(myFile,the moviePath &"info.txt",0) --Open the file with R/W access
  17.     openFile(myFile, squam&"infos.txt",0) --Open the file with R/W access
  18.     --  mySaveString = thescore --puts the contents of the field 'input' into the variable mySaveString
  19.     resetscore = 0
  20.     put resetscore into member("holdscore")
  21.     mySaveString = member("holdscore").text
  22.     writeString(myFile,mySaveString) --writes text to the file
  23.     
  24.     closeFile(myFile) -- Close the file 
  25.     myFile = 0 -- Dispose of the instance
  26.     goToNetPage gotobrassurl, "_new"  
  27.   --end if
  28. end
  29.  
  30.